import request from '@/api/request'

export function addressList() {
  return request({
    url: `/lejuAdmin/companyAddress/addressList`
  })
}

export function setSendOne(data) {
  return request({
    url: `/lejuAdmin/companyAddress/setSendOne`,
    method: "post",
    data
  })
}

export function setReceiveOne(data) {
    return request({
      url: `/lejuAdmin/companyAddress/setReceiveOne`,
      method: "post",
      data
    })
}
  
export function update(data) {
  return request({
    url: `/lejuAdmin/companyAddress/update`,
    method: "post",
    data
  })
}

export function save(data) {
  return request({
    url: `/lejuAdmin/companyAddress/save`,
    method: "post",
    data
  })
}

export function companyAddress(id) {
  return request({
    url: `/lejuAdmin/companyAddress/${id}`,
    method: "DELETE"
  })
}

export function getAddressDetail(id) {
  return request({
    url: `/lejuAdmin/companyAddress/${id}`,
    method: "get"
  })
}


